package cn.qiuyu.gift.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yaohuaipeng
 * @since 2024-07-20
 */
@Data
@TableName("t_tenant")
public class Tenant extends Model<Tenant> {

    private static final long serialVersionUID = 1L;

    /** 待审核 */
    public static final Integer EMPLOYEE_DSH = 0;
    /** 审核通过 */
    public static final Integer EMPLOYEE_SUCCESS = 1;
    /** 审核失败 */
    public static final Integer EMPLOYEE_FAIL = 2;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("company_name")
    private String companyName;
    @TableField("company_num")
    private String companyNum;
    @TableField("register_time")
    private Date registerTime;
    /**
     * 0待审核，1 审核通过 ， 2审核失败
     */
    private Integer state;
    private String address;
    private String logo;
    /**
     * 店铺管理员
     */
    @TableField("admin_id")
    private Long adminId;
    /**
     * 类型id
     */
    @TableField("type_id")
    private Long typeId;


    @TableField(exist = false)
    private Long mealId;

    @TableField(exist = false)
    private Employee admin;





    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
